<?php 
if(!isset($this->session->userdata['id']) && !isset($this->session->userdata['alias']) && !isset($this->session->userdata['name']) && !isset($this->session->userdata['id_rol']) && !isset($this->session->userdata['status']) ){   
   
    redirect('', 'refresh');
    
}else{
 
 $this->session->userdata['id'];
 $this->session->userdata['alias'];
 $this->session->userdata['name'];
 $this->session->userdata['id_rol'];
 $this->session->userdata['status'];
  
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width"/>
<title>Quebrada Verde - Almacenes</title>







<link type="text/css" rel="stylesheet" href="<?=base_url(); ?>theme/css/jscal2.css" />
    <link type="text/css" rel="stylesheet" href="<?=base_url(); ?>theme/css/border-radius.css" />
    <!-- <link type="text/css" rel="stylesheet" href="src/css/reduce-spacing.css" /> -->

    <link id="skin-win2k" title="Win 2K" type="text/css" rel="alternate stylesheet" href="<?=base_url(); ?>theme/css/win2k/win2k.css" />
    <link id="skin-steel" title="Steel" type="text/css" rel="alternate stylesheet" href="<?=base_url(); ?>theme/css/steel/steel.css" />
    <link id="skin-gold" title="Gold" type="text/css" rel="alternate stylesheet" href="<?=base_url(); ?>theme/css/gold/gold.css" />
    <link id="skin-matrix" title="Matrix" type="text/css" rel="alternate stylesheet" href="<?=base_url(); ?>theme/css/matrix/matrix.css" />

    <link id="skinhelper-compact" type="text/css" rel="alternate stylesheet" href="<?=base_url(); ?>theme/css/reduce-spacing.css" />

    
    <script src="<?=base_url(); ?>theme/js/jscal2.js"></script>
    <script src="<?=base_url(); ?>theme/js/unicode-letter.js"></script>

    <!-- you actually only need to load one of these; we put them all here for demo purposes -->
    <script src="<?=base_url(); ?>theme/js/lang/ca.js"></script>
    <script src="<?=base_url(); ?>theme/js/lang/cn.js"></script>
    <script src="<?=base_url(); ?>theme/js/lang/cz.js"></script>
    <script src="<?=base_url(); ?>theme/js/lang/de.js"></script>
    <script src="<?=base_url(); ?>theme/js/lang/es.js"></script>
    <script src="<?=base_url(); ?>theme/js/lang/fr.js"></script>
    <script src="<?=base_url(); ?>theme/js/lang/hr.js"></script>
    <script src="<?=base_url(); ?>theme/js/lang/it.js"></script>
    <script src="<?=base_url(); ?>theme/js/lang/jp.js"></script>
    <script src="<?=base_url(); ?>theme/js/lang/nl.js"></script>
    <script src="<?=base_url(); ?>theme/js/lang/pl.js"></script>
    <script src="<?=base_url(); ?>theme/js/lang/pt.js"></script>
    <script src="<?=base_url(); ?>theme/js/lang/ro.js"></script>
    <script src="<?=base_url(); ?>theme/js/lang/ru.js"></script>
    <script src="<?=base_url(); ?>theme/js/lang/sk.js"></script>
    <script src="<?=base_url(); ?>theme/js/lang/sv.js"></script>

    <!-- this must stay last so that English is the default one -->
    <script src="<?=base_url(); ?>theme/js/lang/en.js"></script>

    <link type="text/css" rel="stylesheet" href="demopage.css" />
    
<link href="<?=base_url(); ?>theme/css/reset.css" rel="stylesheet" type="text/css">
<link href="<?=base_url(); ?>theme/css/layout.css" rel="stylesheet" type="text/css">
<link href="<?=base_url(); ?>theme/css/themes.css" rel="stylesheet" type="text/css">
<link href="<?=base_url(); ?>theme/css/typography.css" rel="stylesheet" type="text/css">
<link href="<?=base_url(); ?>theme/css/styles.css" rel="stylesheet" type="text/css">
<link href="<?=base_url(); ?>theme/css/shCore.css" rel="stylesheet" type="text/css">
<link href="<?=base_url(); ?>theme/css/bootstrap.css" rel="stylesheet" type="text/css">
<link href="<?=base_url(); ?>theme/css/jquery.jqplot.css" rel="stylesheet" type="text/css">
<link href="<?=base_url(); ?>theme/css/jquery-ui-1.8.18.custom.css" rel="stylesheet" type="text/css">
<link href="<?=base_url(); ?>theme/css/data-table.css" rel="stylesheet" type="text/css">
<link href="<?=base_url(); ?>theme/css/form.css" rel="stylesheet" type="text/css">
<link href="<?=base_url(); ?>theme/css/ui-elements.css" rel="stylesheet" type="text/css">
<link href="<?=base_url(); ?>theme/css/wizard.css" rel="stylesheet" type="text/css">
<link href="<?=base_url(); ?>theme/css/sprite.css" rel="stylesheet" type="text/css">
<link href="<?=base_url(); ?>theme/css/gradient.css" rel="stylesheet" type="text/css">
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="<?=base_url(); ?>theme/css/ie/ie7.css" />
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="<?=base_url(); ?>theme/css/ie/ie8.css" />
<![endif]-->
<!--[if IE 9]>
<link rel="stylesheet" type="text/css" href="<?=base_url(); ?>theme/css/ie/ie9.css" />
<![endif]-->
<!-- Jquery -->
<script type="text/javascript">
var url = '<?=base_url(); ?>index.php';
</script>
<script src="<?=base_url(); ?>theme/js/function_confirm_delete_client.js"></script>
<script src="<?=base_url(); ?>theme/js/jquery-1.7.1.min.js"></script>
<script src="<?=base_url(); ?>theme/js/jquery-plugin-ajax-form-validation-html5.js"></script>
<script src="<?=base_url(); ?>theme/js/jquery-ui-1.8.18.custom.min.js"></script>
<script src="<?=base_url(); ?>theme/js/jquery.ui.touch-punch.js"></script>
<script src="<?=base_url(); ?>theme/js/chosen.jquery.js"></script>
<script src="<?=base_url(); ?>theme/js/grider.js"></script>
<script src="<?=base_url(); ?>theme/js/uniform.jquery.js"></script>
<script src="<?=base_url(); ?>theme/js/bootstrap-dropdown.js"></script>
<script src="<?=base_url(); ?>theme/js/bootstrap-colorpicker.js"></script>
<script src="<?=base_url(); ?>theme/js/sticky.full.js"></script>
<script src="<?=base_url(); ?>theme/js/jquery.noty.js"></script>
<script src="<?=base_url(); ?>theme/js/selectToUISlider.jQuery.js"></script>
<script src="<?=base_url(); ?>theme/js/fg.menu.js"></script>
<script src="<?=base_url(); ?>theme/js/jquery.tagsinput.js"></script>
<script src="<?=base_url(); ?>theme/js/jquery.cleditor.js"></script>
<script src="<?=base_url(); ?>theme/js/jquery.tipsy.js"></script>
<script src="<?=base_url(); ?>theme/js/jquery.peity.js"></script>
<script src="<?=base_url(); ?>theme/js/jquery.simplemodal.js"></script>
<script src="<?=base_url(); ?>theme/js/jquery.jBreadCrumb.1.1.js"></script>
<script src="<?=base_url(); ?>theme/js/jquery.colorbox-min.js"></script>
<script src="<?=base_url(); ?>theme/js/jquery.idTabs.min.js"></script>
<script src="<?=base_url(); ?>theme/js/jquery.multiFieldExtender.min.js"></script>
<script src="<?=base_url(); ?>theme/js/jquery.confirm.js"></script>
<script src="<?=base_url(); ?>theme/js/elfinder.min.js"></script>
<script src="<?=base_url(); ?>theme/js/accordion.jquery.js"></script>
<script src="<?=base_url(); ?>theme/js/autogrow.jquery.js"></script>
<script src="<?=base_url(); ?>theme/js/check-all.jquery.js"></script>
<script src="<?=base_url(); ?>theme/js/data-table.jquery.js"></script>
<script src="<?=base_url(); ?>theme/js/ZeroClipboard.js"></script>
<script src="<?=base_url(); ?>theme/js/TableTools.min.js"></script>
<script src="<?=base_url(); ?>theme/js/jeditable.jquery.js"></script>
<script src="<?=base_url(); ?>theme/js/ColVis.min.js"></script>
<script src="<?=base_url(); ?>theme/js/duallist.jquery.js"></script>
<script src="<?=base_url(); ?>theme/js/easing.jquery.js"></script>
<script src="<?=base_url(); ?>theme/js/full-calendar.jquery.js"></script>
<script src="<?=base_url(); ?>theme/js/input-limiter.jquery.js"></script>
<script src="<?=base_url(); ?>theme/js/inputmask.jquery.js"></script>
<script src="<?=base_url(); ?>theme/js/iphone-style-checkbox.jquery.js"></script>
<script src="<?=base_url(); ?>theme/js/meta-data.jquery.js"></script>
<script src="<?=base_url(); ?>theme/js/quicksand.jquery.js"></script>
<script src="<?=base_url(); ?>theme/js/raty.jquery.js"></script>
<script src="<?=base_url(); ?>theme/js/smart-wizard.jquery.js"></script>
<script src="<?=base_url(); ?>theme/js/stepy.jquery.js"></script>
<script src="<?=base_url(); ?>theme/js/treeview.jquery.js"></script>
<script src="<?=base_url(); ?>theme/js/ui-accordion.jquery.js"></script>
<script src="<?=base_url(); ?>theme/js/vaidation.jquery.js"></script>
<script src="<?=base_url(); ?>theme/js/mosaic.1.0.1.min.js"></script>
<script src="<?=base_url(); ?>theme/js/jquery.collapse.js"></script>
<script src="<?=base_url(); ?>theme/js/jquery.cookie.js"></script>
<script src="<?=base_url(); ?>theme/js/jquery.autocomplete.min.js"></script>
<script src="<?=base_url(); ?>theme/js/localdata.js"></script>
<script src="<?=base_url(); ?>theme/js/excanvas.min.js"></script>
<script src="<?=base_url(); ?>theme/js/jquery.jqplot.min.js"></script>
<script src="<?=base_url(); ?>theme/js/chart-plugins/jqplot.dateAxisRenderer.min.js"></script>
<script src="<?=base_url(); ?>theme/js/chart-plugins/jqplot.cursor.min.js"></script>
<script src="<?=base_url(); ?>theme/js/chart-plugins/jqplot.logAxisRenderer.min.js"></script>
<script src="<?=base_url(); ?>theme/js/chart-plugins/jqplot.canvasTextRenderer.min.js"></script>
<script src="<?=base_url(); ?>theme/js/chart-plugins/jqplot.canvasAxisTickRenderer.min.js"></script>
<script src="<?=base_url(); ?>theme/js/chart-plugins/jqplot.highlighter.min.js"></script>
<script src="<?=base_url(); ?>theme/js/chart-plugins/jqplot.pieRenderer.min.js"></script>
<script src="<?=base_url(); ?>theme/js/chart-plugins/jqplot.barRenderer.min.js"></script>
<script src="<?=base_url(); ?>theme/js/chart-plugins/jqplot.categoryAxisRenderer.min.js"></script>
<script src="<?=base_url(); ?>theme/js/chart-plugins/jqplot.pointLabels.min.js"></script>
<script src="<?=base_url(); ?>theme/js/chart-plugins/jqplot.meterGaugeRenderer.min.js"></script>
<script src="<?=base_url(); ?>theme/js/custom-scripts.js"></script>
<script src="<?=base_url(); ?>theme/js/elimina_rols.js"></script>
<script src="<?=base_url(); ?>theme/js/main.js"></script>
<scropt
</head>
<body id="theme-default" class="full_block">
<div id="actionsBox" class="actionsBox">
	<div id="actionsBoxMenu" class="menu">
		<span id="cntBoxMenu">0</span>
		<a class="button box_action">Archive</a>
		<a class="button box_action">Delete</a>
		<a id="toggleBoxMenu" class="open"></a>
		<a id="closeBoxMenu" class="button t_close">X</a>
	</div>
	<div class="submenu">
		<a class="first box_action">Move...</a>
		<a class="box_action">Mark as read</a>
		<a class="box_action">Mark as unread</a>
		<a class="last box_action">Spam</a>
	</div>
</div>
<div id="left_bar">
	
	
	<div id="sidebar">
		<div id="secondary_nav">
			<ul id="sidenav" class="accordion_mnu collapsible">
                            <li style="margin-bottom: 20px;"><a href="#" class="<?=isset($menu) && $menu =='Stock' ? 'active' : '' ?>"><span class="nav_icon dropbox"></span> Accessos Directos<span class="up_down_arrow">&nbsp;</span></a>
                                    <ul class="acitem <?=isset($menu) && $menu =='Stock' ? 'activeMenu' : '' ?>">
                                            <li><a href="<?php echo site_url("stock"); ?>"><span class="list-icon">&nbsp;</span>Stock de Productos</a></li>
                                    </ul>
                                </li>
                            
                                
                                
                                
				</li>                                				
                                
                                <li><a href="#" class="<?=isset($menu) && $menu =='products' ? 'active' : '' ?>"><span class="nav_icon clipboard"></span>Pagos<span class="up_down_arrow">&nbsp;</span></a>
                                 <ul class="acitem <?=isset($menu) && $menu =='products' ? 'activeMenu' : '' ?>">
					<li><a href="<?php echo site_url("pago_mensual/add"); ?>"><span class="list-icon">&nbsp;</span>Nuevo Pago Mensual</a></li>
                                        <li><a href="#"><span class="list-icon">&nbsp;</span>Buscar Pago Mensual</a></li>                                        
				 </ul>   
                                </li>
                                                                                               
				<li><a href="#" class="<?=isset($menu) && $menu =='sales' ? 'active' : '' ?>"><span class="nav_icon money"></span>Contrato<span class="up_down_arrow">&nbsp;</span></a>
				<ul class="acitem <?=isset($menu) && $menu =='sales' ? 'activeMenu' : '' ?>">
					<li><a href="<?php echo site_url("contrato/add"); ?>"><span class="list-icon">&nbsp;</span>Nuevo Contrato</a></li>
                                        <li><a href="<?php echo site_url("contrato"); ?>"><span class="list-icon">&nbsp;</span>Buscar Contrato</a></li>
					<li><a href="#"><span class="list-icon">&nbsp;</span>Reporte de Contratos</a></li>
				</ul>
				</li>
				<li><a href="#" class="<?=isset($menu) && $menu =='Client' ? 'active' : '' ?>" ><span class="nav_icon admin_user_2"></span>Clientes<span class="up_down_arrow">&nbsp;</span></a>
				<ul class="acitem <?=isset($menu) && $menu =='Client' ? 'activeMenu' : '' ?>">

					<li><a href="<?php echo site_url("clients_2/add"); ?>"><span class="list-icon">&nbsp;</span>Agregar Cliente</a></li><!--<?php /*echo base_url();*/ ?>index.php/clients_2/add-->
					<li><a href="<?php echo site_url("clients_2"); ?>"><span class="list-icon">&nbsp;</span>Listado de Cliente</a></li> <!--<?php /*echo base_url();*/ ?>index.php/clients_2/-->
				</ul>
				</li>
				
                                <li><a href="#" class="<?= isset($menu) && $menu =='users' ? 'active' : '' ?>"><span class="nav_icon user_2"></span>Seguridad<span class="up_down_arrow">&nbsp;</span></a>
				<ul class="acitem <?=isset($menu) && $menu =='users' ? 'activeMenu' : '' ?>">
										<li><a href="<?php echo site_url("users/add"); ?>"><span class="list-icon">&nbsp;</span>Agregar Usuario</a></li>
                                        <li><a href="<?php echo site_url("users/"); ?>"><span class="list-icon">&nbsp;</span>Listado de Usuarios</a></li>
                                        <li><a href="<?php echo site_url("rols/add"); ?>"><span class="list-icon">&nbsp;</span>Agregar Rol</a></li>
                                        <li><a href="<?php echo site_url("rols/"); ?>"><span class="list-icon">&nbsp;</span>Listado de Roles</a></li>
                                </ul>
				</li>
				
			</ul>
		</div>
	</div>
</div>
<div id="container">
	<div id="header" class="blue_lin">
		<div class="header_left">
			<?php 
                        /* <div class="logo">
				<img src="<?=base_url(); ?>theme/images/logo.png" width="160" height="60" alt="Ekra">
			</div>*/
                        ?>
			<div id="responsive_mnu">
				<a href="#responsive_menu" class="fg-button" id="hierarchybreadcrumb"><span class="responsive_icon"></span>Menu</a>
				<div id="responsive_menu" class="hidden">
					<ul>
						<ul>
                                                <li><a href="<?php echo site_url("stock"); ?>"><span class="list-icon">&nbsp;</span>Stock de Productos</a></li>
                                                <li><a href="<?php echo site_url("sales/index"); ?>"><span class="list-icon">&nbsp;</span>Buscar Guía de Venta</a></li>
                                        </ul>
                                </div>
                        </div>
                </div>
                <div class="header_right">
                
                        <div id="user_nav">
                                <ul>
                                        <?php /*<li class="user_thumb"><a href="#"><span class="icon"><img src="<?=base_url(); ?>theme/images/user_thumb.png" width="30" height="30" alt="User"></span></a></li>
                                        <li class="user_info"><span class="user_name">Administrator</span><span><a href="#">Profile</a> &#124; <a href="#">Settings</a> &#124; <a href="#">Help&#63;</a></span></li>*/ ?>
                                        <li class="logout"><a href="<?php echo base_url(); ?>index.php/logout"><span class="icon"></span>Logout</a></li>
                                </ul>
                        </div>
                </div>
        </div>
        
        <div id="content">
         <?php $this->load->view($content_view); ?>
    </div>
</div>
</body>
</html>

<?php } ?>